import request from '@/router/axios';
//查询邮件列表
export const query = () => {
  return request({
    url: '/api/blade-email/import',
    method: 'get'
  })
}

//导入邮件 - 新增
export const save = (data) => {
  return request({
    url: '/api/blade-email/import',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  })
}

export const enterEmail = (data) => {
  return request({
    url: '/api/blade-email/import/eml',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  })
}
